<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!-- 文件上传 -->
		<div class="form-group" id="fileImage">
			<div class="col-md-6 control-label" id="uploadprofileimgDiv">
					<a href="javascript:;">
						<s:if test="#request.profileimgFileName == null">
							<img src="../img/hou2.jpg" style="width: 111px;border-radius: 100px;"/>
							<input type="hidden" name="imageFile" value="hou2.jpg">
						</s:if>
						<s:else>
							<img src="../upload/${profileimgFileName }" style="width: 111px;border-radius: 100px;"/>
							<input type="hidden" name="imageFile" value="${profileimgFileName }">
						</s:else>
						
					</a>
			</div>
			<a href="javascript:;" class="sign_ji" style="margin:0;" id="uploadprofileimg">
				<img src="../img/images/file.png" alt="" style="margin-top: 100px;"/>
			</a>
			
			<input type="file" style="opacity:0"   id="fileuploadprofileimg" name="profileimg">
		</div>
		<script type="text/javascript">
		
			$(document).ready(function(){
				
				$("a[id^='upload']").on('click', function() {
					var id = $(this).attr("id");
					$("#file" + id).click();
				});
				
				$("input[id^='fileupload']").on('change', function() {
					var fileElementId = $(this).attr("id");
					ajaxFileUpload("upload","fileImage",fileElementId);
				});
			
			});
		
		</script>